# [Ruby], 98 bytes

<!-- language-all: lang-ruby -->

    ->a,b{*r=0,0,w=-a*b;[*w.step(-w,a)].product([*w.step(-w,b)]).map{|x,y|r[w*w<=>x*x+y*y]+=1};r[0,2]}

[Try it online!][TIO-lrg3un7l]

[Ruby]: https://www.ruby-lang.org/
[TIO-lrg3un7l]: https://tio.run/##TcpBCoMwEEDRfU/RpRknIVqEgo0XCbNI2rorDVGZBPXsacEuunt8flx8LqMpcnDoV4hGo0Y20oHvLbCa5meoJKMTpEJ8P5b7XP13L0iolwvrljBv0TLwzQwJUp0hU22avY9WY0t7CefRdnih04GmO3TFH9rvpql8AA "Ruby – Try It Online"