The treatment for rib cage pain primarily depends on the cause of the pain. Rest and immobilization are the best cures that are available for ribcage pain. If the pain is the result of a minor injury like a pulled muscle or so, then a cold compress will be just enough to provide the required comfort.