Looking at the given definitions, we see that the expression $f \circ h = \textrm{Id}_B$ uses the terms defined in definitions (1), (2), and (3). So our straightforward strategy is first to expand these, and see where that leads us.
So we calculate:
$$
\begin{align}
& f \circ h = \textrm{Id}_B \\
\equiv & \;\;\;\;\;\text{"expand $=$ using definition (1)"} \\
& \langle \forall y :: (f \circ h)(y) = \textrm{Id}_B(y) \rangle \\
\equiv & \;\;\;\;\;\text{"expand $\circ$ using definition (2); expand $\textrm{Id}$ using definition (3)"} \\
& \langle \forall y :: f(h(y)) = y \rangle \\
(*) \equiv & \;\;\;\;\;\text{"logic: one-point rule -- working towards the RHS of definition (0)"} \\
& \langle \forall y :: \langle \exists x : x = h(y) : f(x) = y \rangle \rangle \\
\Rightarrow & \;\;\;\;\;\text{"logic: weaken range of $\exists$"} \\
& \langle \forall y :: \langle \exists x :: f(x) = y \rangle \rangle \\
\equiv & \;\;\;\;\;\text{"definition (0)"} \\
& f \textrm{ is surjection}
\end{align}
$$
Note how almost every step is of the 'there is really only one thing you can do' variety. The only 'creative' step is $(*)$, but also that step is directly guided by the shape for the formulae, in this case the shape of the RHS of (0).
Calculational proofs which mostly consist of such formula-driven steps are essentially the same proofs which Luke Palmer calls 'follow your nose proofs'.
Now we have the essence of the proof, and there are several ways to formally wrap it up, for example as follows:
$$
\begin{align}
& \langle \exists h :: f \circ h = \textrm{Id}_B \rangle \;\Rightarrow\; f \textrm{ is surjection} \\
\equiv & \;\;\;\;\;\text{"logic, allowed because the RHS does not contain $h$} \\
& \;\;\;\;\;\;\text{ -- to bring the beginning and the end of our previous calculation together"} \\
& \langle \forall h :: f \circ h = \textrm{Id}_B \;\Rightarrow\; f \textrm{ is surjection} \rangle \\
\equiv & \;\;\;\;\;\text{"the above calculation"} \\
& \textrm{true} \\
\end{align}
$$
(See the end of my answer https://math.stackexchange.com/a/332186/11994 for references about this calculational proof style.)