A 59-year-old man presents with melena and dizziness. Blood pressure is 92/58 mmHg, heart rate 112 per minute. He takes daily naproxen for chronic back pain. Hemoglobin is 7.8 g/dL. After resuscitation with IV fluids and blood transfusion, which medication should be started immediately while awaiting upper endoscopy?