Being a fairly experienced Tcl hacker, I know Tk supplies a "bell" command
which I've observed to work on a variety of OSes.  I'm not certain how you
would implement this with Ruby's Tk bindings.