Is there a ruby way to enforce specific capitalization style?

i.e. 
change "JOHN DOE" to "John Doe"

In C++ I search for a space then captalize the next letter and capitalize the first letter of the string.

Thanks!