You could do it several ways depending on your woodworking skill.
- With a morticing machine, either hollow chisel or a slot morticer
- With a Router using a guide fence and some support either side of the stock
- With a drill press and some sharp chisels to clean up the waste