A 52-year-old man presents with a 3-month history of dysphagia, initially to solids and now progressing to liquids. He also reports unintentional weight loss of 5kg. He is an ex-smoker and drinks alcohol occasionally. What is the most appropriate immediate action?