“Writing Atheist/Theist characters in fiction”

The goal of this discussion is to feel out how to write atheist themes/characters in fiction when living in a mostly christian society. What is the difference between being preachy and introducing ideas that might challenge the reader’s world view? Should we avoid either or both?