Use blue painters tape. Apply the tape to the ceiling as close to the corner as possible. Then apply a small amount of caulking to the corner, trying to just cover the tape edge. Paint as usual then carefully remove the tape. You will have a nearly perfect line.
You will have a little touch-up but not like free handing the corner with a brush.