You will need a C compiler to install Ruby. Download and install the pre-build binary for your version of OS X. If you're not sure what version of OS X you're using, go to the menu and select "About This Mac".
https://github.com/kennethreitz/osx-gcc-installer#option-1-downloading-pre-built-binaries