Ruby header files not found in gem install

Ever attempt to install a Ruby gem and got the message:

mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h

For compiling native gems the ruby header files are required. These can be installed on CentOS for example by executing:

yum install ruby-devel