title: RSpec Stubbing: Return the parameter
body: <p>Though my question is pretty straightforward, I failed to find an answer around here:</p>
  
  <p>How can I stub a method and return the parameter itself (for example on a method that does an array-operation)?</p>
  
  <p>Something like this:</p>
  
  <pre><code> interface.stub!(:get_trace).with(&lt;whatever_here&gt;).and_return(&lt;whatever_here&gt;)
  </code></pre>