if you’re using your OS supplied Ruby, then you’ll need to install dev packages for it; you’ll need to figure out what exactly they are named, but it will likely be a variation of ruby*-dev; perhaps ruby-dev.
Alternatively, this should also work; I believe ruby-build sets up headers for you as part of the compilation process when installing a version.
You’ll need to set up rbenv first though.