title: Is there a way to access method arguments in Ruby?
body: <p>New to Ruby and ROR and loving it each day, so here is my question since I have not idea how to google it (and I have tried :) )</p>
  
  <p>we have method</p>
  
  <pre><code>def foo(first_name, last_name, age, sex, is_plumber)
      # some code
      # error happens here
      logger.error "Method has failed, here are all method arguments #{SOMETHING}"    
  end
  </code></pre>
  
  <p>So what I am looking for way to get all arguments passed to method, without listing each one. Since this is Ruby I assume there is a way :) if it was java I would just list them :)</p>
  
  <p>Output would be:</p>
  
  <pre><code>Method has failed, here are all method arguments {"Mario", "Super", 40, true, true}
  </code></pre>