First, we know that if the Ricci tensor $S$ is of the form $S = ag$, $R_{ij} = ag_{ij}$ where $a$ is a constant, then $M$ is called an Einstein manifold. At the same time we know that if $M$ is a Riemannian manifold and $S = ag$ where $a$ is a function on $M$, then $a$ is necessarily a constant provided that $\dim M > 2$.
I wonder can we say that an Einstein manifold has constant curvature if $\dim M > 2$, due to its definition and the result stated above.