Generate a tone using ruby?

Maybe snd (_http://ccrma.stanford.edu/software/snd/snd/snd.html_
(http://ccrma.stanford.edu/software/snd/snd/snd.html) ) can be of help to you.
You can access it using Ruby.

Best regards,

Axel