How do you place chapter numbers and names in Writer headers?

Is there a way to add chapter numbers and chapter names in headers in Writer such that the chapter numbers and chapter names correctly reflect each section?

Yes, there is a way. Once you’ve added the header, place the cursor in it. Then go to Insert > Fields > Others… There you go!