Let's say I've got a length of 6x2 (150\*50mm) and I want to cut a 2x2 notch to inset another timber perpendicular.

How can I make a neat square notch accurately? Two vertical cuts are easy but how to make the final cut to get the piece out?

What tools and techniques are used?