You don't actually need to catch the fish yourself, simply gaining one from another player or the spawn chest works too.
If you want to catch one you will need to make a fishing rod (3x Sticks, 2x String). Cast it into any body of water with
and when you notice it sink under, press
once more.