Use the composition depth buffer in order to create a depth of field. This modifier uses the focus distance of the
A camera filming 3D content
You can vizualize the depth of field with colors by checking this option:
Blur the image
part of the documentation for further details about the parameters.