title: Rails Debug method in GitLab pipeline
body: <p>I am contributing to the GitLab repo of my team, and my merge request is failing in pipeline's <em>test_job</em> phase, while passing the tests locally. Hence I need to debug in pipeline method I wrote. Locally I can do it easily in Rails console(or logs) by putting <code>p</code> or <code>Rails.logger</code> where I want. I can also inspect variables from test files to output them to pipeline like this:</p>
  
  <pre><code># test/helpers/some_helper_test.rb
  p var_to_check
  test 'something' do
      assert_equal(my_method(var_to_check), 10)
  end
  </code></pre>
  
  <p>but <code>p</code> and <code>Rails.logger</code> (while being in my_method)are not outputting internals of <code>my_method</code> in pipeline while in <em>test_job</em> phase.</p>
  
  <p>Since my tests are failing only in pipeline, how can I inspect the internals of <code>my_method</code> method to output some variables to pipeline?</p>