title: Ruby - print the variable name and then its value
body: <p>What is the best way to write a function (or something DSLish) that will allow me to write this code in Ruby. How would I construct the function write_pair?</p>
  
  <pre><code>username = "tyndall"
  write_pair username
  # where write_pair username outputs 
  username: tyndall
  </code></pre>
  
  <p>Is it possible to do? Looking for the most simple way to do this.</p>