It might be simple indigestion, however certain medical conditions (e.g. acid reflux, angina) can also cause such symptoms. Costochondritis, the inflammation of the cartilage that connects a rib to the breastbone, is a typical cause of rib pain after eating or drinking. Albeit there is no scientific evidence for this, some people with costochondritis find that their rib pain gets worse after drinking coffee.