A 52-year-old man presents with melaena and presyncope. Blood pressure is 90/60 mm Hg, heart rate 112/min. Hb is 82 g/L. He takes daily Ibuprofen for osteoarthritis. After establishing IV access and resuscitation, what is the most appropriate next step in management?