A 63-year-old man presents with coffee-ground vomitus and melena. He has been taking naproxen regularly for osteoarthritis. Blood pressure is 96/60 mm Hg, heart rate 112/min. Hb is 86 g/L, platelets and INR are normal. After initial resuscitation, what pharmacologic therapy should be started while awaiting endoscopy?