Fake SSN in Ruby

Generating a fake SSN in in Ruby was a fun.

2.3.1 :001 > "#{'%03d' % rand(1000)}-#{'%02d' % rand(100)}-#{'%04d' % rand(10000)}"  
 => "175-11-5835"

I made it a string, not sure if that's how most databases store it!