title: Run ruby script with tracing output like set -x in bash
body: <p>Does ruby have some way to execute a ruby script in tracing mode?</p>
  <p>For example: If we execute a bash script with <code>set -x</code> it shows input and output of the command being executed. Is there a way to accomplish this in ruby?</p>