Probing the assembly history and dynamical evolution of massive black hole binaries with pulsar timing arrays