A Paley-Wiener theorem and Arthur's trace formula