Odd, that's what I use:
# cat /usr/local/etc/dnsmasq.conf address=/dev/127.0.0.1
# cat /etc/resolver/dev nameserver 127.0.0.1
Instead of your choice of foobar.
Doesn't work offline. Your conf looks like the standard dnsmasq conf anyway, so maybe there's one other flag or configuration that you figured out?