title: How to get a list of the arguments a method is called with
body: <p>How do I get a list of the arguments passed to a method, preferably one that I can iterate through?</p>
  
  <p>For example something like</p>
  
  <pre><code>def foo(a,b,c)
    puts args.inspect
  end
  
  foo(1,2,3)
  =&gt; [1,2,3]
  </code></pre>
  
  <p>?
  Thanks!</p>