As you can see in the other answers, continuity is already enough to derive a contradiction. In addition, here is a proof that uses that $f$ is continously differentiable:
Assume that $f$ is bijective and of class $C^1$. Write $f: \mathbb{R} \times \mathbb{R} \rightarrow \mathbb{R}$, and consider its differential $d_{(x,y)}f = (f_x, f_y)$. Because $f$ is bijective, there is some point $(x_0, y_0)$ such that $d_{(x_0,y_0)}f \neq (a,0)$, where $a \in \mathbb{R}$ is arbitrary. Let $f(x_0,y_0) = z_0$ and consider
$F(x,y) = f(x_0,y_0) - z_0$
Then we can apply the implicit function theorem (since the second component of the differential at $(x_0,y_0)$ is not zero and thus invertible), getting open neighbourhoods $U,V \subseteq \mathbb{R}$ with $x_0 \in U, y_0 \in V$ and a function $g: U \rightarrow V$ with $g(x_0) = y_0$, such that
$F(x,y) = 0\, \Leftrightarrow\, y = g(x)$
on $U \times V$ or, in other words,
$f(x,g(x)) - z_0 \equiv 0\, \Leftrightarrow\, f(x,g(x)) \equiv z_0$
on $U \times V$, which is a contradiction to the bijectivity of $f$.
For your interest: there are (non-continuous) bijective maps from $\mathbb{R^2}$ to $\mathbb{R}$ (look for example here: Examples of bijective map from $\mathbb{R}^3\rightarrow \mathbb{R}$)