How to plot possible values of a function on specified range

Let say I have a function

def f:x,y,z return x**2+abs(exp(5*y)-5*z) x=range[0,2.65] y=range[0,3.86] z=range[0,6]

Now I have to plot all possible values of the function f[x,y,z] against z. It will look like a scattered discrete points in f-z plane