title: Ruby equivalent to func_get_args()
body: <p>In many PHP-application, when things are badly documented or weird implemented, the function <a href="http://us3.php.net/manual/en/function.func-get-args.php" rel="nofollow noreferrer">func_get_args()</a> comes to resque. It allows me to inspect (or print) what variables are passed along to a function</p>
  
  <pre><code>function poorly_documented($op, $a2, $a3 = 'default', $rest) {
    var_dump(func_get_args());
    // ...
  }
  </code></pre>
  
  <p>Allthough in Ruby I hardly ever need this, due to the nature of the language, I sometimes like to inspect what is passed along. </p>
  
  <p>How would I do that in Ruby, or Ruby on Rails?</p>