With interior: yes. Fix a sequence of squares $Q_1\supset Q_2\supset\dots$ whose union is the entire plane. Then arrange a map $g:\mathbb R\to\mathbb R^2$ such that, for every nontrivial segment $[a,b]\subset\mathbb R$, its image is one of the squares $Q_i$. To do that, construct countably many disjoint Cantor sets, and send every Cantor set $K$ bijectively onto $Q_n$ where $n$ is the maximum number such that $K$ does not have points in $[-n,n]$. Send the complements of these Cantor sets to a fixed point inside $Q_1$. Then define $f(x,y)=g(y)$.
(This is a detailed version of gowers' answer.)