A numerical solution could beIf you know the parameterranges, ContourPlot3D easily shows possible solutions
ContourPlot3D[a Tanh[z - b] == z, {a, 0, 1}, {b, 0, 5}, {z, -1, 0},AxesLabel -> {a, b, z}]
numerical solution
solN[a_?NumericQ, b_?NumericQ] :=z /. NSolve[{a Tanh[z - b] == z, -5 < z < 5}, z][[1]] (*needs a z-range*)
solN[1/Pi, E]
(* -0.316842 *)
or
sol[a_?NumericQ, b_?NumericQ] :=z /. NMinimize[{1, a Tanh[z - b] == z}, z][[2]]
sol[1/Pi, E]
(* -0.316842 *)